import request from '~/utils/request'

export const postData = ({ data, url }) => {
  return request({
    url,
    method: 'post',
    data
  })
}

export const getEditData = ({ id, url }) => {
  return request({
    url: `${url}/byId?id=${id}`,
    method: 'get'
  })
}

export const getTabelList = ({ data, url }) => {
  return request({
    url: url,
    method: 'get',
    params: data
  })
}

export const postStatus = ({ data, url, method }) => {
  return request({
    url: url,
    method,
    params: data
  })
}

export const upDateRow = ({ data, url }) => {
  return request({
    url: `${url}/priority`,
    method: 'post',
    data
  })
}

